#include <iostream>
#include <cstring>
#include <algorithm>

using namespace std;

int main()
{
    int T;
    cin >> T;
    while(T--)
    {
        int n;
        cin >> n;
        for (int i = 0; i < n; i ++ )
        {
            cout << 1 << " ";
        }
        cout << endl;
    }
    return 0;
}